<?php

/**
 * Description of HtmlFormElement
 *
 * @author Ian Clarence <ian.clarence@gmail.com>
 */
class HtmlFormElement extends ActiveRecord {

    /**
     * The table name.
     */
    const TABLE = "html_form_element";

    /**
     * The array of possible values for this form element: for select elements or radio buttons.
     *
     * @var array
     */
    protected $htmlFormElementValues = array();

    /**
     * The constructor.
     *
     * @param array $fields
     * @param array $htmlFormElementValues
     */
    public function __construct(array $fields = array(), $htmlFormElementValues = array()) {
        parent::__construct($fields);
        $this->htmlFormElementValues = $htmlFormElementValues;
    }

    /**
     * Getter for the array of possible values.
     *
     * @return array
     */
    public function getHtmlFormElementValues() {
        return $this->htmlFormElementValues;
    }

    /**
     * Setter for the array of possible values.
     *
     * @param array $htmlFormElementValues
     */
    public function setHtmlFormElementValues($htmlFormElementValues) {
        $this->htmlFormElementValues = $htmlFormElementValues;
    }

}